package com.clothing.service;

import com.clothing.entity.Article;
import com.clothing.entity.ArticlePraise;
import com.clothing.entity.User;

/**
 * @ClassName: ArticlePraiseService 
 * @Description: TODO(ArticlePraise-Service) 
 * @author Charles
 * @date 2018年6月8日
 * @version 1.0
 */
public interface ArticlePraiseService extends BaseService<ArticlePraise, Long>
{
    /**
     * @Title: praise 
     * @Description: TODO(赞) 
     * @param @param article
     * @param @param user 设定文件 
     * @return void 返回类型  
     * @throws
     */
    void praise(Article article, User user);
    
    /**
     * @Title: findOne 
     * @Description: TODO(查询单条) 
     * @param @param articleId
     * @param @param userId
     * @param @return 设定文件 
     * @return ArticlePraise 返回类型  
     * @throws
     */
    ArticlePraise findOne(Long articleId, Long userId);
}
